#ifndef GW_ADCHANNEL_H
#define GW_ADCHANNEL_H

#include "stm32f0xx_hal.h"
#include "Filter_Kalman.h"
#include "GWType.h"
#include <list>

class GW_ADChannel
{
private:
   GW_Kalman filter;
   u32   *ptAD;
   u16   *ptOUT;
   std::list<u16> listAD;
   u32 sum;
public:
   GW_ADChannel();
   void setptAD(u32 *pt);
   void setptOUT(u16 *pt);
   void reflesh();
   u32 getChannelAD();
};

#endif
